package cn.tedu.imop.content.entity;
import io.github.classgraph.json.Id;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
//@Document(indexName = "tb_article")
public class Article implements Serializable {
    private static final long serialVersionUID = -3383125155111498158L;
    @Id
    private Integer id;
    //@Field(type = FieldType.Text, analyzer = "ik_smart")
    private String title;
    private String categoryId;
   // @Field(type = FieldType.Keyword)
    private String categoryName;
    /**文章标签，多个标签之间用逗号分隔*/
    private String label;
    /**文章摘要*/
   // @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String digest;
    /**文章封面*/
    private String cover;
    /**文章中的图片*/
    private String mainPic;
    /**文章详情*/
    //@Field(type = FieldType.Text, analyzer = "ik_smart")
    private String detail;
    /**文章所属店铺*/
    private int shopId;
    /**活动标语*/
    private String  activityWord;
    private Integer activityId;
    private String latitude;
    private String longitude;
    private int status;
    private int views;
    private int likes;
    private int favorites;
    private Integer isDelete;
    private Date createTime;
    private Date updateTime;
}
